// const Mock = require('mockjs')

const tempData = {
    "city":"温州",
    "swiperlist": [
      {
        "id": "001",
        "imgurl":
          "https://tr-osdcp.qunarzz.com/tr-osd-vs-dapp-ugc/img/c4b5bf0bf14d8fd498bb7fdd86aae516.jpg"
      },
      {
        "id": "002",
        "imgurl":
          "https://tr-osdcp.qunarzz.com/tr-osd-vs-dapp-ugc/img/6c2a8edf20adef06f042afabe3d95803.jpg"
      },
      {
        "id": "003",
        "imgurl":
          "https://tr-osdcp.qunarzz.com/tr-osd-vs-dapp-ugc/img/1dc9c1abb594de3bd048a5747a92ec3e.jpg"
      },
      {
        "id": "004",
        "imgurl":
          "https://tr-osdcp.qunarzz.com/tr-osd-vs-dapp-ugc/img/50f1714951e1f5e105f169eb90709c99.jpg"
      }
    ],"iconList": [
      {
        "id": "0001",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/hotel.png",
        "desc": "酒店"
      },
      {
        "id": "0002",
        "imgurl":
          "https://s.qunarzz.com/homenode/images/touchheader/flight.png",
        "desc": "机票"
      },
      {
        "id": "0003",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/train.png",
        "desc": "火车票"
      },
      {
        "id": "0004",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/piao.png",
        "desc": "度假"
      },
      {
        "id": "0005",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/piao.png",
        "desc": "景点门票"
      },{
        "id": "0006",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/hotel.png",
        "desc": "酒店"
      },
      {
        "id": "0007",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/flight.png",
        "desc": "机票"
      },
      {
        "id": "0008",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/train.png",
        "desc": "火车票"
      },
      {
        "id": "0009",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/piao.png",
        "desc": "度假"
      },
      {
        "id": "0010",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/piao.png",
        "desc": "景点门票"
      },
      {
        "id": "0011",
        "imgurl": "https://s.qunarzz.com/homenode/images/touchheader/piao.png",
        "desc": "景点门票"
      }
    ],"itemList": [
      {
          "id":"001",
          "imgurl":"https://imgs.qunarzz.com/p/p67/1512/a2/0ebfcd965b9391f7.jpg_256x160_04d5813d.jpg",
          "add":"温州-三亚",
          "time":"8天跟团游",
          "info":"含往返飞机票+7晚住宿",
          "price":"¥ 3659"
      },
      {
          "id":"002",
          "imgurl":"https://imgs.qunarzz.com/p/p70/1809/e7/4941057a6aae702.jpg_256x160_9fee6ccb.jpg",
          "add":"温州-三亚",
          "time":"8天跟团游",
          "info":"含往返飞机票+7晚住宿",
          "price":"¥ 3659"
      },
      {
          "id":"003",
          "imgurl":"https://imgs.qunarzz.com/p/p12/201302/28/83ba8aa24931fbe493835fbb.jpg_256x160_7331b3d5.jpg",
          "add":"温州-三亚",
          "time":"8天跟团游",
          "info":"含往返飞机票+7晚住宿",
          "price":"¥ 3659"
      },
      {
          "id":"004",
          "imgurl":"https://imgs.qunarzz.com/p/p53/1809/59/a95e0544d16dc102.jpg_256x160_74bab347.jpg",
          "add":"温州-三亚",
          "time":"8天跟团游",
          "info":"含往返飞机票+7晚住宿",
          "price":"¥ 3659"
      }
      ],"itemListWeek": [
          {
              "id":"001",
              "imgurl":"https://img1.qunarzz.com/sight/p0/1603/8f/8fff2332dff679ec90.water.jpg_256x160_224237e3.jpg",
              "desc":"海天佛国的观音到场",
              "title":"普陀山风景区",
              "price":"¥ 162"
          },
          {
              "id":"002",
              "imgurl":"https://img1.qunarzz.com/sight/p0/1601/1c/1cdfd6a29fd1813990.img.jpg_256x160_87ff1663.jpg",
              "desc":"游览江南富户的巨宅庄园",
              "title":"南浔古镇",
              "price":"¥ 75"
          },
          {
              "id":"003",
              "imgurl":"https://img1.qunarzz.com/sight/p0/1607/21/2142167d4b1bfa84b4.water.jpg_256x160_ea65b4f7.jpg",
              "desc":"阿汤哥《碟中谍》取景地",
              "title":"西塘古镇",
              "price":"¥ 95"
          },
          {
              "id":"004",
              "imgurl":"https://img1.qunarzz.com/sight/p0/1812/30/308fce51111d148fa3.img.jpg_256x160_83792a45.jpg",
              "desc":"冰雪运动，品牌十年",
              "title":"临安大明山滑雪场",
              "price":"¥ 173.3"
          }
          ]
  }

module.exports = [
    {
      url: '/indexjson',
      type: 'get',
      response: config => {
        // const { importance, type, title, page = 1, limit = 20, sort } = config.query
  
        // let mockList = List.filter(item => {
        //   if (importance && item.importance !== +importance) return false
        //   if (type && item.type !== type) return false
        //   if (title && item.title.indexOf(title) < 0) return false
        //   return true
        // })
  
        // if (sort === '-id') {
        //   mockList = mockList.reverse()
        // }
  
        // const pageList = mockList.filter((item, index) => index < limit * page && index >= limit * (page - 1))
  
        return {
          code: 20000,
          data: {
            total: tempData,
          }
        }
      }
    },
  
   
  ]
  


